package com.rdgzs.framework.web;


import org.springside.modules.orm.Page;

import com.rdgzs.framework.utilsTools.ConfigPropertiesUtils;

public class CurrPage<T> extends Page{
	public CurrPage() {
		this.pageSize = getDefaultPageSize();
	}
	public CurrPage(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public Integer getDefaultPageSize(){
		//super.setOrderBy("id");
		//super.setOrder(super.ASC);
		if(ConfigPropertiesUtils.getValueByKey("Default.PageSize")!=null){
			return Integer.parseInt(ConfigPropertiesUtils.getValueByKey("Default.PageSize"));
		}else{
			return 15;
		}
	}
	
}
